#include <iostream>
#include <type_traits>

enum class LevelType : uint16_t
{
    UNKNOW = 0,
    DEBUG,
    INFO,
    WARN,
    ERROR
};

int main()
{
    using underlying_type = std::underlying_type<LevelType>::type;
    std::cout << "Underlying type size: " << sizeof(underlying_type) << " bytes\n"; 
    return 0;
}
